<div id="submenu">
    <?php
    $actionId = Yii::app()->controller->action->id;
    $this->menu = array( //In layout, we have set-up a placeholder for submenu by putting a widget CMenu loading items from $this->menu; Now we define its real items
        //Manage Stock
        array(
            'label' => CHtml::tag(
                'div',
                array('class' => 'submenu-item'),
                'Manage Stock'
            ),
            'url'   => array('index'),
            'active'=> $actionId == 'index',
        ),

        //Import From File
        array(
            'label' => CHtml::tag(
                'div',
                array('class' => 'submenu-item'),
                'Import from File'
            ),
            'url'   => array('importFromFile'),
            'active'=> $actionId == 'importFromFile',
        ),

        //Import From Web
        array(
            'label' => CHtml::tag(
                'div',
                array('class' => 'submenu-item'),
                'Import from Web'
            ),
            'url'   => array('importFromWeb'),
            'active'=> $actionId == 'importFromWeb',
        ),

        //Validation
        array(
            'label' => CHtml::tag(
                'div',
                array('class' => 'submenu-item'),
                'Validation'
             ),
            'url'   => array('validation'),
            'active'=> $actionId == 'validation',
        ),
    );?>
</div><!-- submenu -->
